<?php

/**
 * This is the model metadata class for table "company_certificate".
 */
class CompanyCertificateMetadata extends CARMDC
{
	/**
	 * @return string the associated database table name
	 */
	public function tableName()
	{
		return 'company_certificate';
	}

	/**
	 * @return array validation rules for model attributes.
	 */
	public function rules()
	{
		// NOTE: you should only define rules for those attributes that
		// will receive user inputs.
		return array(
			array('company_id', 'length', 'max'=>20),
			array('certificate_name', 'length', 'max'=>64),
			array('certifcate_path', 'length', 'max'=>128),
			array('certificate_content', 'safe'),
			// The following rule is used by search().
			// Please remove those attributes that should not be searched.
			array('certifcate_id, company_id, certificate_name, certifcate_path, certificate_content', 'safe', 'on'=>'search'),
		);
	}

	/**
	 * @return array relational rules.
	 */
	public function relations()
	{
		// NOTE: you may need to adjust the relation name and the related
		// class name for the relations automatically generated below.
		return array(
		);
	}

	/**
	 * @return array customized attribute labels (name=>label)
	 */
	public function attributeLabels()
	{
		return array(
			'certifcate_id' => '资料id',
			'company_id' => '企业id',
			'certificate_name' => 'Certificate Name',
			'certifcate_path' => 'Certifcate Path',
			'certificate_content' => 'Certificate Content',
		);
	}
}